package cn.inbot.shopadmin.api;

import java.util.HashMap;

import cn.inbot.shopadmin.bean.LoginResult;
import cn.inbot.shopadmin.bean.RobotVoListResult;
import cn.inbot.shopadmin.bean.ScanQrcodeResult;
import cn.inbot.lib.network.BaseResponse;
import io.reactivex.Observable;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * Created by shisenkun on 2021/5/10.
 */
public interface DemoApi {

    /**
     * 通过密码登录
     */
    @FormUrlEncoded
    @POST("cloudserver/login.action")
    Observable<LoginResult> login(@FieldMap HashMap<String, String> options);

    /**
     * 获取机器人列表
     */
    @FormUrlEncoded
    @POST("cloudserver/findAllRobotFriendList.action")
    Observable<RobotVoListResult> getRobotVoList(@FieldMap HashMap<String, String> options);

    /**
     * 保存个推ID
     */
    @FormUrlEncoded
    @POST("cloudservice/saveGeTuiClientId.action")
    Observable<BaseResponse> saveGeTuiClientId(@FieldMap HashMap<String, String> options);


    /**
     * 添加好友
     */
    @FormUrlEncoded
    @POST("cloudserver/addFriendByQrcode.action")
    Observable<ScanQrcodeResult> scanQrcode(@FieldMap HashMap<String, String> options);

}
